package test00.tx03;

import java.util.Arrays;
import java.util.Comparator;

public class MainTest02 {
    public static void main(String[] args) {
        Integer[] arr = {1,2,3,10,4,5,6,7,8,9};
//        Arrays.sort(arr, Comparator.reverseOrder());
        Arrays.sort(arr,Comparator.comparingInt(a->a));
        System.out.println(Arrays.toString(arr));
    }
}
